500 |
How can I add an extra button to a spin editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); DefaultItemHeight := 20; with (Columns.Add('Date') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.SpinType; AddButton('B1',TObject(2),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B1',Nil,Nil); ButtonWidth := 20; end; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); end; end |
499 |
How can I remove or delete the buttons in the editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('Edit') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; AddButton('B1',TObject(1),TObject(0),'This is a bit of text that''s shown when the cursor hovers the button B1',Nil,Nil); AddButton('B3',TObject(2),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B3',Nil,Nil); AddButton('B4',TObject(1),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B4',Nil,Nil); RemoveButton('B1'); ButtonWidth := 20; end; with Items do begin AddItem('Text 1'); AddItem('Text 2'); end; end |
498 |
How can I hide the buttons in the editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); DefaultItemHeight := 24; with (Columns.Add('Edit') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; AddButton('B1',TObject(1),TObject(0),'This is a bit of text that''s shown when the cursor hovers the button B1',Nil,Nil); AddButton('B3',TObject(2),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B3',Nil,Nil); AddButton('B4',TObject(1),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B4',Nil,Nil); ButtonWidth := 0; end; with Items do begin AddItem('Text 1'); AddItem('Text 2'); end; end |
497 |
How can I change the width of the buttons in the editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); DefaultItemHeight := 24; with (Columns.Add('Edit') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; AddButton('B1',TObject(1),TObject(0),'This is a bit of text that''s shown when the cursor hovers the button B1',Nil,Nil); AddButton('B3',TObject(2),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B3',Nil,Nil); AddButton('B4',TObject(1),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B4',Nil,Nil); ButtonWidth := 24; end; with Items do begin AddItem('Text 1'); AddItem('Text 2'); end; end |
496 |
How can I add extra buttons to an editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('Edit') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; AddButton('B1',TObject(1),TObject(0),'This is a bit of text that''s shown when the cursor hovers the button B1',Nil,Nil); AddButton('B2',TObject(2),TObject(0),'This is a bit of text that''s shown when the cursor hovers the button B2',Nil,Nil); AddButton('B3',TObject(3),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B3',Nil,Nil); AddButton('B4',TObject(1),TObject(1),'This is a bit of text that''s shown when the cursor hovers the button B4',Nil,Nil); end; with Items do begin AddItem('Text 1'); AddItem('Text 2'); end; end |
495 |
is there any function to specify the number of rows / items being visible in a drop down list editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); DropDownRows := 1; PopupAppearance := EXGRIDLib.InplaceAppearanceEnum.FlatApp; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
494 |
How can I change the border for a drop down editor
with AxGrid1 do begin with (Columns.Add('Date') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; PopupAppearance := EXGRIDLib.InplaceAppearanceEnum.FlatApp; end; Items.AddItem('Today'); with Items do begin CellEditor[TObject(AddItem('Today')),TObject(0)].EditType := EXGRIDLib.EditTypeEnum.DateType; end; end |
493 |
How can I remove a predefined item in a drop down editor
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorListType; Option[EXGRIDLib.EditorOptionEnum.exColorListShowName] := TObject(True); RemoveItem(255); end; Items.AddItem(TObject(255)); Items.AddItem(TObject(65280)); end |
492 |
How can I remove or clear all predefined items in a drop down editor
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorListType; ClearItems(); AddItem(255,'Red Color',Nil); end; Items.AddItem(TObject(255)); end |
491 |
How can I center the predefined items in a drop down editor editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); DropDownAlignment := EXGRIDLib.AlignmentEnum.CenterAlignment; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
490 |
How can I right align the items in a drop down editor editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); DropDownAlignment := EXGRIDLib.AlignmentEnum.RightAlignment; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
489 |
How can I specify the width of the drop down editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin DropDownAutoWidth := EXGRIDLib.DropDownWidthType.exDropDownEditorWidth; DropDownMinWidth := 385; EditType := EXGRIDLib.EditTypeEnum.ColorListType; end; with Items do begin AddItem(TObject(255)); AddItem(TObject(65280)); end; end |
488 |
How can hide the drop down button for an editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin DropDownVisible := False; EditType := EXGRIDLib.EditTypeEnum.ColorListType; end; with Items do begin AddItem(TObject(255)); AddItem(TObject(65280)); end; end |
487 |
How can assign a tooltip to a drop down list editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); ItemToolTip[TObject(1)] := 'This is a tooltip that shows when user hovers the <b>first</b> item'; ItemToolTip[TObject(2)] := 'This is a tooltip that shows when user hovers the <b>second</b> item'; ItemToolTip[TObject(3)] := 'This is a tooltip that shows when user hovers the <b>third</b> item'; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
486 |
How can I lock, disable make read only an editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin Locked := True; EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
485 |
How can I sort the items in a drop down list editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'Second item',Nil); AddItem(2,'First item',Nil); AddItem(3,'Third item',Nil); SortItems(TObject(True),Nil); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
484 |
How can I expand an item in the tree or a hierarchy of a drop down editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column) do begin Def[EXGRIDLib.DefColumnEnum.exCellValueFormat] := TObject(1); with Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; DropDownAutoWidth := EXGRIDLib.DropDownWidthType.exDropDownEditorWidth; AddItem(1,'<b>CObject</b> class',TObject(1)); InsertItem(2,'<b>CCmdTarget</b> class',TObject(2),TObject(1)); InsertItem(3,'<b>CWnd</b> class',TObject(3),TObject(2)); InsertItem(6,'<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>',TObject(1),TObject(1)); AddItem(4,'Exceptions',TObject(1)); InsertItem(7,'<b>System</b> Exceptions',TObject(2),TObject(4)); AddItem(5,'File Services',TObject(2)); ExpandItem[TObject(1)] := True; end; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
483 |
How can I display a tree or a hierarchy in a drop down editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column) do begin Def[EXGRIDLib.DefColumnEnum.exCellValueFormat] := TObject(1); with Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; DropDownAutoWidth := EXGRIDLib.DropDownWidthType.exDropDownEditorWidth; AddItem(1,'<b>CObject</b> class',TObject(1)); InsertItem(2,'<b>CCmdTarget</b> class',TObject(2),TObject(1)); InsertItem(3,'<b>CWnd</b> class',TObject(3),TObject(2)); InsertItem(6,'<bgcolor=10A0E0><fgcolor=F0F0F0>S y n c</fgcolor>',TObject(1),TObject(1)); AddItem(4,'Exceptions',TObject(1)); InsertItem(7,'<b>System</b> Exceptions',TObject(2),TObject(4)); AddItem(5,'File Services',TObject(2)); ExpandAll(); end; end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
482 |
How can I look for items that includes the typed characters in a drop down list editor
with AxGrid1 do begin with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin Option[EXGRIDLib.EditorOptionEnum.exAutoSearch] := TObject(1); EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
481 |
How can I keep the selection background color while editor is visible
with AxGrid1 do begin SelBackColor := Color.FromArgb(255,0,0); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin Option[EXGRIDLib.EditorOptionEnum.exKeepSelBackColor] := TObject(True); EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',Nil); AddItem(2,'Second item',Nil); AddItem(3,'Third item',Nil); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
480 |
How can I select from a drop down list the editor, when the user starts typing in the editor, while it is closed and focused
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin Option[EXGRIDLib.EditorOptionEnum.exAutoDropDownList] := TObject(1); EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',TObject(1)); AddItem(2,'Second item',TObject(3)); AddItem(3,'Third item',TObject(2)); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
479 |
How can I automatically drop down the list editor, when the user starts typing in the editor
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin Option[EXGRIDLib.EditorOptionEnum.exAutoDropDownList] := TObject(-1); EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'First item',TObject(1)); AddItem(2,'Second item',TObject(3)); AddItem(3,'Third item',TObject(2)); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
478 |
How can I add a Font editor
with AxGrid1 do begin (Columns.Add('Font') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.FontType; Items.AddItem('Tahoma'); end |
477 |
How can I change the visual appearance for the buttons in the calculator editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcPictureUp] := AxGrid1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)'); Option[EXGRIDLib.EditorOptionEnum.exCalcPictureDown] := AxGrid1.ExecuteTemplate('loadpicture(`c:\exontrol\images\auction.gif`)'); end; Items.AddItem(TObject(10)); end |
476 |
How can I customize the caption of buttons in the calculator editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcButtons] := '0;1;2;3;4;5;6;7;8;9;<b>+</b>;<fgcolor=FF0000>=</fgcolor>'; end; Items.AddItem(TObject(10)); end |
475 |
How can I customize the caption of buttons in the calculator editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcButtons] := '0;1;2;3;4;5;6;7;8;9'; end; Items.AddItem(TObject(10)); end |
474 |
How can I specify the width and height of the buttons in the calculator editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcButtonWidth] := TObject(32); Option[EXGRIDLib.EditorOptionEnum.exCalcButtonHeight] := TObject(32); end; Items.AddItem(TObject(10)); end |
473 |
How can I change the "Cannot divide by zero" message that shows in the calculator editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcCannotDivideByZero] := 'Divizion by zero'; end; Items.AddItem(TObject(10)); end |
472 |
How can I enable or disable executing operations while the calculator editor is focused and closed
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Option[EXGRIDLib.EditorOptionEnum.exCalcExecuteKeys] := TObject(False); end; Items.AddItem(TObject(10)); end |
471 |
How can I add a calculator editor
with AxGrid1 do begin (Columns.Add('Slider') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.CalculatorType; Items.AddItem(TObject(10)); end |
470 |
How can I edit a number between a range or interval
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Numeric := EXGRIDLib.NumericEnum.exInteger; Option[EXGRIDLib.EditorOptionEnum.exSpinStep] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderMin] := TObject(5); Option[EXGRIDLib.EditorOptionEnum.exSliderMax] := TObject(15); end; Items.AddItem(TObject(10)); end |
469 |
How can I hide or show the spin in the slider or track bar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Option[EXGRIDLib.EditorOptionEnum.exSpinStep] := TObject(0); end; Items.AddItem(TObject(10)); end |
468 |
How can I add a slider or track bar editor, with a fixed size
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(64); end; Items.AddItem(TObject(10)); end |
467 |
How can I add a slider or track bar editor, so it covers half of the cell
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(-50); end; Items.AddItem(TObject(10)); end |
466 |
How can I add a slider or track bar editor, so it covers the full cell
with AxGrid1 do begin var_Editor := (Columns.Add('Slider') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(-100); end; Items.AddItem(TObject(10)); end |
465 |
How can I add a slider or track bar editor within a range or interval of numbers
with AxGrid1 do begin var_Editor := (Columns.Add('Spin from 5 to 15') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Numeric := EXGRIDLib.NumericEnum.exInteger; Option[EXGRIDLib.EditorOptionEnum.exSliderMin] := TObject(5); Option[EXGRIDLib.EditorOptionEnum.exSliderMax] := TObject(15); end; Items.AddItem(TObject(10)); end |
464 |
How can I add a slider or track bar editor within a range or interval of float numbers
with AxGrid1 do begin var_Editor := (Columns.Add('Spin from 5 to 15') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Numeric := EXGRIDLib.NumericEnum.exFloat; Option[EXGRIDLib.EditorOptionEnum.exSliderMin] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderMax] := TObject(1); Option[EXGRIDLib.EditorOptionEnum.exSpinStep] := '0.01'; Option[EXGRIDLib.EditorOptionEnum.exSliderStep] := '0.01'; end; Items.AddItem('0.3'); end |
463 |
How can I add a spin editor within a range or interval of float numbers
with AxGrid1 do begin var_Editor := (Columns.Add('Spin from 5 to 15') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Numeric := EXGRIDLib.NumericEnum.exFloat; Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderMin] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderMax] := TObject(1); Option[EXGRIDLib.EditorOptionEnum.exSpinStep] := '0.01'; end; Items.AddItem('0.3'); end |
462 |
How can I add a spin editor within a range or interval of numbers
with AxGrid1 do begin var_Editor := (Columns.Add('Spin from 5 to 15') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SliderType; Numeric := EXGRIDLib.NumericEnum.exInteger; Option[EXGRIDLib.EditorOptionEnum.exSliderWidth] := TObject(0); Option[EXGRIDLib.EditorOptionEnum.exSliderMin] := TObject(5); Option[EXGRIDLib.EditorOptionEnum.exSliderMax] := TObject(15); end; Items.AddItem(TObject(10)); end |
461 |
How can I add a slider or track bar editor
with AxGrid1 do begin (Columns.Add('Slider') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.SliderType; Items.AddItem(TObject(10)); end |
460 |
I have check box column, but the check-boxes looks disabled. What can I do
with AxGrid1 do begin var_Editor := (Columns.Add('Check') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.CheckValueType; Option[EXGRIDLib.EditorOptionEnum.exCheckValue2] := TObject(1); end; with Items do begin AddItem(TObject(False)); AddItem(TObject(True)); AddItem(TObject(False)); end; end |
459 |
How do I add check box column, so the cell value is changed as I click the cells
with AxGrid1 do begin MarkSearchColumn := False; with (Columns.Add('C') as EXGRIDLib.Column) do begin Width := 18; AllowSizing := False; with Editor do begin EditType := EXGRIDLib.EditTypeEnum.CheckValueType; Option[EXGRIDLib.EditorOptionEnum.exCheckValue2] := TObject(1); end; end; Columns.Add('Text'); with Items do begin CellValue[TObject(AddItem(TObject(False))),TObject(1)] := 'Check 1'; CellValue[TObject(AddItem(TObject(True))),TObject(1)] := 'Check 2'; CellValue[TObject(AddItem(TObject(False))),TObject(1)] := 'Check 3'; end; end |
458 |
How do I add check box column, so the cell value is changed as I click the cells
with AxGrid1 do begin (Columns.Add('Check') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.CheckValueType; with Items do begin AddItem(TObject(False)); AddItem(TObject(True)); AddItem(TObject(False)); end; end |
457 |
How do I disable adding new lines using the ENTER key in a memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoDropDownType; Option[EXGRIDLib.EditorOptionEnum.exMemoDropDownAcceptReturn] := TObject(False); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
456 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoDropDownType; Option[EXGRIDLib.EditorOptionEnum.exMemoVScrollBar] := TObject(True); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
455 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoDropDownType; Option[EXGRIDLib.EditorOptionEnum.exMemoHScrollBar] := TObject(True); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
454 |
How can I specify the width or the height for a drop down memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoDropDownType; Option[EXGRIDLib.EditorOptionEnum.exMemoDropDownWidth] := TObject(256); Option[EXGRIDLib.EditorOptionEnum.exMemoDropDownHeight] := TObject(64); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
453 |
How do I add a drop down memo or a multiple lines edit control
with AxGrid1 do begin (Columns.Add('Edit') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.MemoDropDownType; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
452 |
How do I add a color list editor with my own or custom colors
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorListType; Option[EXGRIDLib.EditorOptionEnum.exColorListShowName] := TObject(True); ClearItems(); AddItem(255,'Red Color',Nil); AddItem(16711680,'Blue Color',Nil); AddItem(65280,'Green Color',Nil); end; Items.AddItem(TObject(255)); end |
451 |
How do I add a color list editor with my own or custom colors
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorListType; ClearItems(); AddItem(255,'Red Color',Nil); AddItem(16711680,'Blue Color',Nil); AddItem(65280,'Green Color',Nil); end; Items.AddItem(TObject(255)); end |
450 |
How can I show the color's name in a color list editor
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorListType; Option[EXGRIDLib.EditorOptionEnum.exColorListShowName] := TObject(True); end; Items.AddItem(TObject(255)); end |
449 |
How do I add a color list editor
with AxGrid1 do begin (Columns.Add('Color') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.ColorListType; Items.AddItem(TObject(255)); end |
448 |
How can I access my own custom or ActiveX editor
with AxGrid1 do begin DrawGridLines := EXGRIDLib.GridLinesEnum.exAllLines; DefaultItemHeight := 128; with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.UserEditorType; UserEditor('MSCAL.Calendar',''); with (UserEditorObject as MSACAL.Calendar) do begin BackColor := $ffffff; GridCellEffect := 0; ShowTitle := False; ShowDateSelectors := False; end; end; with Items do begin AddItem('MSCal.Calendar'); AddItem('MSCal.Calendar'); end; end |
447 |
How can I add my own custom or ActiveX editor
with AxGrid1 do begin DrawGridLines := EXGRIDLib.GridLinesEnum.exAllLines; DefaultItemHeight := 128; with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.UserEditorType; UserEditor('MSCAL.Calendar',''); end; with Items do begin AddItem('MSCal.Calendar'); AddItem('MSCal.Calendar'); end; end |
446 |
How can I add a hyperlink editor
with AxGrid1 do begin (Columns.Add('Shell.Execute') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.LinkEditType; Items.AddItem('http://www.exontrol.com'); Items.AddItem('c:\'); end |
445 |
How can I add a drop down editor, that allows only predefined values, but still being able to edit and select
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.PickEditType; AddItem(1,'The first item',TObject(1)); AddItem(2,'The second item',TObject(3)); AddItem(3,'The third item',TObject(2)); end; with Items do begin AddItem('The first item'); AddItem('The third item'); end; end |
444 |
How can I show or hide the rectangle arround progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); var_Editor := (Columns.Add('Progress') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Option[EXGRIDLib.EditorOptionEnum.exProgressBarMarkTicker] := TObject(False); end; Items.AddItem(TObject(33)); end |
443 |
How can I hide the caption / percent in the progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); var_Editor := (Columns.Add('Progress') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Option[EXGRIDLib.EditorOptionEnum.exProgressBarAlignment] := TObject(-1); end; Items.AddItem(TObject(33)); end |
442 |
How can I align the caption in the center of the progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); var_Editor := (Columns.Add('Progress') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Option[EXGRIDLib.EditorOptionEnum.exProgressBarAlignment] := TObject(1); end; Items.AddItem(TObject(33)); end |
441 |
How can I align the caption to the right in the progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); var_Editor := (Columns.Add('Progress') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Option[EXGRIDLib.EditorOptionEnum.exProgressBarAlignment] := TObject(2); end; Items.AddItem(TObject(33)); end |
440 |
How can I change the background color for a progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); var_Editor := (Columns.Add('Progress') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Option[EXGRIDLib.EditorOptionEnum.exProgressBarBackColor] := TObject(255); end; Items.AddItem(TObject(33)); end |
439 |
How can I add a progress bar editor
with AxGrid1 do begin SelForeColor := Color.FromArgb(0,0,0); SelBackColor := Color.FromArgb(128,255,255); (Columns.Add('Progress') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.ProgressBarType; Items.AddItem(TObject(33)); end |
438 |
How can I add a button editor
with AxGrid1 do begin (Columns.Add('Button') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.ButtonType; Items.AddItem('Just a text'); end |
437 |
How can I show or hide the type of the OLE Object for Photo or a Picture editor
with AxGrid1 do begin ColumnAutoResize := False; with (Columns.Add('Photo') as EXGRIDLib.Column) do begin Width := 74; with Editor do begin EditType := EXGRIDLib.EditTypeEnum.PictureType; Option[EXGRIDLib.EditorOptionEnum.exShowPictureType] := TObject(False); end; end; with Items do begin h := AddItem(Nil); CellValue[TObject(h),TObject(0)] := AxGrid1.ExecuteTemplate('loadpicture(`c:\exontrol\images\sample.bmp`)'); ItemHeight[h] := 64; end; end |
436 |
How can I add a Photo or a Picture editor
with AxGrid1 do begin (Columns.Add('Photo') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.PictureType; with Items do begin h := AddItem(Nil); CellValue[TObject(h),TObject(0)] := AxGrid1.ExecuteTemplate('loadpicture(`c:\exontrol\images\sample.bmp`)'); ItemHeight[h] := 64; end; end |
435 |
How can I hide or show the "System" page in the color editor
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorType; Option[EXGRIDLib.EditorOptionEnum.exColorShowSystem] := TObject(False); end; Items.AddItem(TObject(255)); end |
434 |
How can I hide or show the "Palette" page in the color editor
with AxGrid1 do begin var_Editor := (Columns.Add('Color') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.ColorType; Option[EXGRIDLib.EditorOptionEnum.exColorShowPalette] := TObject(False); end; Items.AddItem(TObject(255)); end |
433 |
How do I add a color editor
with AxGrid1 do begin (Columns.Add('Color') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.ColorType; Items.AddItem(TObject(255)); end |
432 |
How do I change the masking character
with AxGrid1 do begin var_Editor := (Columns.Add('Mask') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MaskType; Mask := '###'; MaskChar := 48; end; Items.AddItem(''); end |
431 |
How do I mask an IP
with AxGrid1 do begin var_Editor := (Columns.Add('IP') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MaskType; Mask := '{0,255}\.{0,255}\.{0,255}\.{0,255}'; end; Items.AddItem('1.2.3.4'); end |
430 |
How do I add a mask editor
with AxGrid1 do begin var_Editor := (Columns.Add('Mask') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MaskType; Mask := '{0,255}\.{0,255}\.{0,255}\.{0,255}'; end; Items.AddItem('1.2.3.4'); end |
429 |
How to show or hide the week numbers header in a drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateWeeksHeader] := TObject(True); end; Items.AddItem('Today'); end |
428 |
How do I show or hide the bottom scroll bar in the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateShowScroll] := TObject(False); end; Items.AddItem('Today'); end |
427 |
How do highlight the "Today" date is the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateMarkToday] := TObject(True); end; Items.AddItem('Today'); end |
426 |
How do I show or hide the "Today" button is the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateShowTodayButton] := TObject(False); end; Items.AddItem('Today'); end |
425 |
How to specify the first day of the week in the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateFirstWeekDay] := TObject(1); end; Items.AddItem('Today'); end |
424 |
How to specifies the shortcut for the weekdays to be displayed in the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateWeekDays] := 'Du Lu Ma Mi Jo Vi Si'; end; Items.AddItem('Today'); end |
423 |
How can I change the name of the months in the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateMonths] := 'Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre'; end; Items.AddItem('Today'); end |
422 |
Can I change the "Today" caption being displayed in the drop down date picker calendar editor
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateTodayCaption] := 'Azi'; end; Items.AddItem('Today'); end |
421 |
How can allow empty date to drop down date picker control or a calendar control
with AxGrid1 do begin var_Editor := (Columns.Add('Date') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.DateType; Option[EXGRIDLib.EditorOptionEnum.exDateAllowNullDate] := TObject(True); end; with Items do begin AddItem('Today'); AddItem(''); AddItem('Today'); end; end |
420 |
How can I a drop down date picker control or a calendar control
with AxGrid1 do begin (Columns.Add('Date') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.DateType; with Items do begin AddItem('Today'); end; end |
419 |
How can I have an OR combination of my bit values, something like a check-box list editor
with AxGrid1 do begin with (Columns.Add('CkeckList') as EXGRIDLib.Column) do begin Def[EXGRIDLib.DefColumnEnum.exCellValueFormat] := TObject(1); with Editor do begin EditType := EXGRIDLib.EditTypeEnum.CheckListType; AddItem(1,'Bit <b>1</b>',Nil); AddItem(2,'Bit <b>2</b>',Nil); AddItem(4,'Bit <b>3</b>',Nil); AddItem(8,'Bit <b>4</b>',Nil); AddItem(16,'Bit <b>5</b>',Nil); AddItem(32,'Bit <b>6</b>',Nil); AddItem(64,'Bit <b>7</b>',Nil); AddItem(128,'Bit <b>8</b>',Nil); end; end; with Items do begin AddItem(TObject(112)); AddItem(TObject(2)); end; end |
418 |
How do I stop resizing the memo or a multiple lines edit control, while the user types
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoType; Option[EXGRIDLib.EditorOptionEnum.exMemoAutoSize] := TObject(False); Option[EXGRIDLib.EditorOptionEnum.exMemoHScrollBar] := TObject(True); Option[EXGRIDLib.EditorOptionEnum.exMemoVScrollBar] := TObject(True); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
417 |
How do I add a horizontal scroll bar for a memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoType; Option[EXGRIDLib.EditorOptionEnum.exMemoHScrollBar] := TObject(True); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
416 |
How do I add a vertical scroll bar for a memo or a multiple lines edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.MemoType; Option[EXGRIDLib.EditorOptionEnum.exMemoVScrollBar] := TObject(True); end; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.This is a long text that should break the' + ' line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
415 |
How do I add a memo or a multiple lines edit control
with AxGrid1 do begin (Columns.Add('Edit') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.MemoType; with Items do begin CellSingleLine[TObject(AddItem('This is a long text that should break the line, and get it displayed on multiple lines.')),TObject(0)] := EXGRIDLib.CellSingleLineEnum.exCaptionWordWrap; end; end |
414 |
How to specify the proposed change when the user clicks a spin control.
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SpinType; Numeric := EXGRIDLib.NumericEnum.exInteger; Option[EXGRIDLib.EditorOptionEnum.exSpinStep] := TObject(10); end; with Items do begin AddItem(TObject(0)); AddItem(TObject(10)); AddItem(TObject(20)); end; end |
413 |
How do I add a spin editor that allows only integer values
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.SpinType; Numeric := EXGRIDLib.NumericEnum.exInteger; end; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); AddItem(TObject(2)); end; end |
412 |
How do I add a spin editor
with AxGrid1 do begin (Columns.Add('Edit') as EXGRIDLib.Column).Editor.EditType := EXGRIDLib.EditTypeEnum.SpinType; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); AddItem(TObject(2)); end; end |
411 |
How do I specify in a drop down list editor, that I do not want to have predefined icon
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'The first item',TObject(1)); AddItem(2,'The second item',TObject(3)); AddItem(3,'The third item',TObject(2)); Option[EXGRIDLib.EditorOptionEnum.exDropDownImage] := TObject(False); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
410 |
How do I add a drop down editor, that allows only predefined values
with AxGrid1 do begin Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA='); with (Columns.Add('DropDown') as EXGRIDLib.Column).Editor do begin EditType := EXGRIDLib.EditTypeEnum.DropDownListType; AddItem(1,'The first item',TObject(1)); AddItem(2,'The second item',TObject(3)); AddItem(3,'The third item',TObject(2)); end; with Items do begin AddItem(TObject(1)); AddItem(TObject(2)); end; end |
409 |
How to allow the editor to work on insert or overtype mode
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Option[EXGRIDLib.EditorOptionEnum.exEditAllowOverType] := TObject(True); Option[EXGRIDLib.EditorOptionEnum.exEditOverType] := TObject(True); end; with Items do begin AddItem('000'); AddItem('111'); AddItem('222'); end; end |
408 |
How to set foreground color for a locked, or read only edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Locked := True; Option[EXGRIDLib.EditorOptionEnum.exEditLockedForeColor] := TObject(8421504); end; with Items do begin AddItem('000'); AddItem('111'); AddItem('222'); end; end |
407 |
How to set background color for a locked, or read only edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Locked := True; Option[EXGRIDLib.EditorOptionEnum.exEditLockedBackColor] := TObject(8421504); end; with Items do begin AddItem('000'); AddItem('111'); AddItem('222'); end; end |
406 |
How to set the number of characters selected, when an EditType editor is opened
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Option[EXGRIDLib.EditorOptionEnum.exEditSelLength] := TObject(1); end; with Items do begin AddItem('000'); AddItem('111'); AddItem('222'); end; end |
405 |
How to set the starting point of text selected, when an EditType editor is opened
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Option[EXGRIDLib.EditorOptionEnum.exEditSelStart] := TObject(1); Option[EXGRIDLib.EditorOptionEnum.exEditSelLength] := TObject(1); end; with Items do begin AddItem('000'); AddItem('111'); AddItem('222'); end; end |
404 |
How to specifiy the symbol that indicates the decimal values while editing a floating point number
with AxGrid1 do begin BeginUpdate(); with (Columns.Add('Float') as EXGRIDLib.Column) do begin FormatColumn := 'len(value) ? (round(value) = value ? value : value format `|,|0`) : ``'; with Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Numeric := EXGRIDLib.NumericEnum.exFloatInteger; Option[EXGRIDLib.EditorOptionEnum.exEditDecimalSymbol] := TObject(44); end; end; with Items do begin AddItem(TObject(0.12)); AddItem(TObject(1)); AddItem(TObject(2.45)); end; EndUpdate(); end |
403 |
How can I edit a float number
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Numeric := EXGRIDLib.NumericEnum.exFloat; end; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); AddItem(TObject(2)); end; end |
402 |
How can I edit a number
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Numeric := EXGRIDLib.NumericEnum.exInteger; end; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); AddItem(TObject(2)); end; end |
401 |
How do I limit the length of the text that the user may enter into an edit control
with AxGrid1 do begin var_Editor := (Columns.Add('Edit') as EXGRIDLib.Column).Editor; with var_Editor do begin EditType := EXGRIDLib.EditTypeEnum.EditType; Option[EXGRIDLib.EditorOptionEnum.exEditLimitText] := TObject(1); end; with Items do begin AddItem(TObject(0)); AddItem(TObject(1)); AddItem(TObject(2)); end; end |